﻿using System;

namespace LocalMethodIn7
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            Foo();
        }

        static void Foo()
        {
            Console.WriteLine(cube(3));
            Console.WriteLine(cube(4));
            Console.WriteLine(cube(5));
            int cube(int value) => value * value * value;
        }
    }
}
